Functions
Link copied to clipboard
public abstract void addEventListener(EventType eventType, Observer<Event> listener, boolean useCapture)
Adds the given
listener
to the event target.Link copied to clipboard
Adds the given
node
as a child of the current node to the end of its children list.Link copied to clipboard
Compares position of the current node against another node in a DOM tree.
Link copied to clipboard
Link copied to clipboard
Creates and returns a new DOM element with the given
tagName
.Link copied to clipboard
Link copied to clipboard
Creates a new
KeyEvent
instance with the KEY_DOWN event type and the given params
.Link copied to clipboard
Creates a new
KeyEvent
instance with the KEY_PRESS event type and the given params
.Link copied to clipboard
Creates a new
KeyEvent
instance with the KEY_UP event type and the given params
.Link copied to clipboard
Creates and returns a new
MouseEvent
object with the given eventType
and params
.Link copied to clipboard
Creates and returns a new
WheelEvent
object with the given eventType
and params
.Link copied to clipboard
Returns an
Optional
that contains the document HTML element that usually represents HTML tag, otherwise an empty Optional
if the document element is not available.Link copied to clipboard
Evaluates the given XPath
expression
for the node and returns the XPathResult
of the ANY type.Evaluates the given XPath
expression
for the node and returns the XPathResult
object of the given type
.Link copied to clipboard
Returns the immutable list of event listeners that listen events of the given
eventType
in a phase that corresponds the given useCapture
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
className
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
cssSelector
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
id
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
name
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
tagName
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
className
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
cssSelector
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
id
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
name
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
tagName
.Link copied to clipboard
Returns an
Optional
that contains the currently focused element in the document, otherwise an empty Optional
if there is no focused element in this document.Link copied to clipboard
Inserts the given
node
before the given beforeNode
as a child of the current node.Link copied to clipboard
Returns an
Optional
that contains the next node in the document tree if such a node exists, otherwise returns an empty Optional
.Link copied to clipboard
Returns an
Optional
that contains the previous node in the document tree if such a node exists, otherwise returns an empty Optional
.Link copied to clipboard
Removes the given
childNode
of the current node from the DOM.Link copied to clipboard
public abstract void removeEventListener(EventType eventType, Observer<Event> listener, boolean useCapture)
Removes the given
listener
from the event target.Link copied to clipboard
Replaces the given child
oldNode
of the current node with the given newNode
.Link copied to clipboard
Returns the text content of the current node and its descendants.
Removes all the current node children and replaces them with a single text node with the given
textContent
.